#/bin/usr/bash

echo "!^!_!^!_!^!_!^!_!^!_! Running JLex  !^!_!^!_!^!_!^!_!^!_!^!_!"
jlex pikalang.lex
echo "!^!_!^!_!^!_!^!_!^!_! Renaming output !^!_!^!_!^!_!^!_!^!_!^!"
mv pikalang.lex.java Yylex.java
echo "!^!_!^!_!^!_!^!_!^!_! Running CUP !^!_!^!_!^!_!^!_!^!_!^!_!^!"
cup pikalang.cup
echo "!^!_!^!_!^!_!^!_!^!_! Compiling !^!_!^!_!^!_!^!_!^!_!^!_!^!_!"
javac -Xbootclasspath/a:../lib/java-cup-11a-runtime.jar Test.java
